package com.jtny.nytb.datafilling.dao;

import com.jtny.component.core.mapper.CoreMapper;
import com.jtny.nytb.datafilling.domain.EnergyFillDO;
import com.jtny.nytb.datafilling.dto.HistoryEnergyPriceDTO;
import com.jtny.nytb.datafilling.dto.HistoryEnergyPriceParamDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 能源填报信息表DAO接口
 *
 * @author 智慧能源中心 - 罗霄林
 * @package com.jtny.gannengcloud.gatds.dao
 * @fileName EnergyFillDAO.java
 * @createTime 2023年09月12日 16:57
 * @Copyright© 2023 jtny
 * 江投能源技术研究院 版权所有
 */
@Mapper
public interface EnergyFillDAO extends CoreMapper<EnergyFillDO> {

    List<HistoryEnergyPriceDTO> queryHistoryEnergyPriceData(HistoryEnergyPriceParamDTO historyEnergyPriceParamDTO);

    Long selectIdByParam(@Param("year")String year, @Param("month")String month, @Param("institution")String institution, @Param("name")String name);

    Long selectLastIdByParam(@Param("year")String year,@Param("institution")String institution,@Param("name")String name);

    Long queryIdByYearAndMonth(@Param("year")String year,@Param("month")String month);

    Long queryLastIdByYearAndMonth(@Param("year")String year);
}
